2024-04-28 11:25:06,989 build-0aa2c6d1-d284-4852-949f-fa309e74eaa9 INFO CONTAINER_REQUEST_COUNT: 0 2024-04-28 11:25:06,989 build-0aa2c6d1-d284-4852-949f-fa309e74eaa9 INFO Fetching me assessment 2024-04-28 11:25:06,989 build-0aa2c6d1-d284-4852-949f-fa309e74eaa9 INFO ME Assessment fetched - {'meId': 'ME_JAVA101_SET_MAP', 'stages': [, , ], 'assessmentEndpoint': 'https://me-java101-set-map-prod-nnjjst7g5q-uc.a.run.app/', 'fargateTaskDefinition': None, 'meFolder': 'me_java_junit', 'runInIsolation': False} 2024-04-28 11:25:06,989 build-0aa2c6d1-d284-4852-949f-fa309e74eaa9 INFO Starting assessment 2024-04-28 11:25:07,495 build-0aa2c6d1-d284-4852-949f-fa309e74eaa9 INFO Running assessment stage setup 2024-04-28 11:25:07,496 build-0aa2c6d1-d284-4852-949f-fa309e74eaa9 INFO {'buildId': '0aa2c6d1-d284-4852-949f-fa309e74eaa9', 'userId': 'acharekar1191', 'cohortId': 'COHORT_ME_JAVA101_SET_MAP_ENROLL_1706525820952', 'meId': 'ME_JAVA101_SET_MAP', 'moduleId': 'ME_JAVA101_SET_MAP_MODULE_TWOSUMJUNIT', 'buildType': 'BUILD_TYPE_SUBMIT', 'assessmentType': 'ASSESSMENT_TYPE_UNTIMED', 'questionId': 'QUESTION_TwoSumJunit', 'psDsContext': {'codeId': 73728770, 'inputs': [], 'codeData': {'code': 'import java.util.*;\n\npublic class Solution {\n\n public static int[] twoSum(int[] nums, int target) {\n int low = 0;\n\t\tint high = nums.length - 1;\n int sum=0;\n\t\tint[] indices = new int[2];\n\t\t\t\twhile (low < high) {\n\t\t\t\t sum = nums[low] + nums[high];\n\t\t\t\t if (sum == target)\n\t\t\t\t {\n\t\t\t\t \tindices[0]=low;\n\t\t\t\t \tindices[1]=high;\n\t\t\t\t break;\n\t\t\t\t } else if ( sum < target ) {\n\t\t\t\t low = low + 1;\n\t\t\t\t } else {\n\t\t\t\t high = high - 1;\n\t\t\t\t }\n\t\t\t\t}\n if(sum != target) {\n\t\t\t\t\tindices[0]=-1;\n\t\t\t \tindices[1]=-1;\n\t\t\t\t}\n\t\treturn indices;\n }\n\n public static void main(String args[]) {\n int[] nums = {2,4,5,8,9};\n assert Arrays.equals(twoSum(nums, 7) , new int[]{0,2}) : "Expect {0,2} for nums = {2,4,5,8,9}, target = 7";\n assert Arrays.equals(twoSum(nums, 22) , new int[]{-1,-1}) : "Expect {-1,-1} for nums = {2,4,5,8,9}, target = 22";\n System.out.println("All test cases in main function passed");\n }\n}\n\n', 'languageType': 'LANGUAGE_TYPE_JAVA'}}, 'timestampInMs': 1714303506782, 'meAssessment': {'meId': 'ME_JAVA101_SET_MAP', 'stages': [, , ], 'assessmentEndpoint': 'https://me-java101-set-map-prod-nnjjst7g5q-uc.a.run.app/', 'fargateTaskDefinition': None, 'meFolder': 'me_java_junit', 'runInIsolation': False}, 'workingDir': '//acharekar1191-ME_JAVA101_SET_MAP-0aa2c6d1-d284-4852-949f-fa309e74eaa9'} 2024-04-28 11:25:07,496 build-0aa2c6d1-d284-4852-949f-fa309e74eaa9 INFO Getting crio data... 2024-04-28 11:25:07,792 build-0aa2c6d1-d284-4852-949f-fa309e74eaa9 INFO Received and unzipped crio data in 0.2958502769470215 seconds 2024-04-28 11:25:07,792 build-0aa2c6d1-d284-4852-949f-fa309e74eaa9 INFO Getting user data... 2024-04-28 11:25:07,792 build-0aa2c6d1-d284-4852-949f-fa309e74eaa9 INFO Received user data in 2.5033950805664062e-05 seconds 2024-04-28 11:25:07,793 build-0aa2c6d1-d284-4852-949f-fa309e74eaa9 INFO Setup stage completed in 0.29694461822509766 seconds. 2024-04-28 11:25:07,793 build-0aa2c6d1-d284-4852-949f-fa309e74eaa9 INFO BuildStageType.BUILD_STAGE_TYPE_SETUP stage complete. Report: {} 2024-04-28 11:25:08,314 build-0aa2c6d1-d284-4852-949f-fa309e74eaa9 INFO Running assessment stage compilation 2024-04-28 11:25:08,316 build-0aa2c6d1-d284-4852-949f-fa309e74eaa9 INFO Compiling code... 2024-04-28 11:25:09,450 build-0aa2c6d1-d284-4852-949f-fa309e74eaa9 INFO Compilation complete! 2024-04-28 11:25:09,450 build-0aa2c6d1-d284-4852-949f-fa309e74eaa9 INFO Compilation finished in 1.1320970058441162 seconds 2024-04-28 11:25:09,450 build-0aa2c6d1-d284-4852-949f-fa309e74eaa9 INFO Compilation stage completed in 1.1344473361968994 seconds. 2024-04-28 11:25:09,450 build-0aa2c6d1-d284-4852-949f-fa309e74eaa9 INFO BuildStageType.BUILD_STAGE_TYPE_COMPILATION stage complete. Report: {'compilationStatus': 'success'} 2024-04-28 11:25:09,972 build-0aa2c6d1-d284-4852-949f-fa309e74eaa9 INFO Running assessment stage unitTesting 2024-04-28 11:25:10,930 build-0aa2c6d1-d284-4852-949f-fa309e74eaa9 INFO Test logs : Thanks for using JUnit! Support its development at https://junit.org/sponsoring . +-- JUnit Jupiter [OK] | '-- Tests [OK] | '-- testTwoSum() [X] array contents differ at index [0], expected: <1> but was: <-1> '-- JUnit Vintage [OK] Failures (1): JUnit Jupiter:Tests:testTwoSum() MethodSource [className = 'Tests', methodName = 'testTwoSum', methodParameterTypes = ''] => org.opentest4j.AssertionFailedError: array contents differ at index [0], expected: <1> but was: <-1> org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:39) org.junit.jupiter.api.AssertArrayEquals.failArraysNotEqual(AssertArrayEquals.java:432) org.junit.jupiter.api.AssertArrayEquals.assertArrayEquals(AssertArrayEquals.java:244) org.junit.jupiter.api.AssertArrayEquals.assertArrayEquals(AssertArrayEquals.java:90) org.junit.jupiter.api.AssertArrayEquals.assertArrayEquals(AssertArrayEquals.java:86) org.junit.jupiter.api.Assertions.assertArrayEquals(Assertions.java:1277) Tests.testTwoSum(Tests.java:23) java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [...] Test run finished after 203 ms [ 3 containers found ] [ 0 containers skipped ] [ 3 containers started ] [ 0 containers aborted ] [ 3 containers successful ] [ 0 containers failed ] [ 1 tests found ] [ 0 tests skipped ] [ 1 tests started ] [ 0 tests aborted ] [ 0 tests successful ] [ 1 tests failed ] 2024-04-28 11:25:10,930 build-0aa2c6d1-d284-4852-949f-fa309e74eaa9 INFO Time taken to test code 0.9553987979888916 2024-04-28 11:25:10,932 build-0aa2c6d1-d284-4852-949f-fa309e74eaa9 INFO Unittesting stage completed in 0.959545373916626 seconds. 2024-04-28 11:25:10,933 build-0aa2c6d1-d284-4852-949f-fa309e74eaa9 INFO BuildStageType.BUILD_STAGE_TYPE_UNIT_TESTING stage complete. Report: {'testTwoSum()': 'TEST_STATUS_FAILURE'} 2024-04-28 11:25:10,964 build-0aa2c6d1-d284-4852-949f-fa309e74eaa9 INFO Found bucket assessment-build-logs-prod 2024-04-28 11:25:11,112 build-0aa2c6d1-d284-4852-949f-fa309e74eaa9 INFO Files from stages uploaded in 0.1476747989654541 seconds 2024-04-28 11:25:11,112 build-0aa2c6d1-d284-4852-949f-fa309e74eaa9 INFO Build Report formed: 2024-04-28 11:25:11,113 build-0aa2c6d1-d284-4852-949f-fa309e74eaa9 INFO { "buildId": "0aa2c6d1-d284-4852-949f-fa309e74eaa9", "userId": "acharekar1191", "meId": "ME_JAVA101_SET_MAP", "cohortId": "COHORT_ME_JAVA101_SET_MAP_ENROLL_1706525820952", "buildType": "BUILD_TYPE_SUBMIT", "questionId": "QUESTION_TwoSumJunit", "stages": [ { "type": "BUILD_STAGE_TYPE_SETUP", "status": "BUILD_STAGE_STATUS_SUCCESS", "feedback": null, "report": {}, "logPath": "https://storage.googleapis.com/assessment-build-logs-prod/acharekar1191-ME_JAVA101_SET_MAP/build-0aa2c6d1-d284-4852-949f-fa309e74eaa9/setup.log?Expires=1745839511&GoogleAccessId=storage-service%40crio-prod.iam.gserviceaccount.com&Signature=sgDNvkOGxAcl2DoIpbuT7SzMd8O8KD8V%2Bdc8qO9APgFgfpmVcrLH0Q2B07lSbu4mXOwAt7EAMgqaXP0TX9g3W8L6oi6YjKauvz8RfBGWKjyKFP7i6JEmsgISVmzV%2BH9AoVp%2BG37Z94w7v%2F7uX%2FkyDD3y2p3BJvsGnZOK399keOhqSugr7eeeQMEkCMByacb%2BwmNSbl9yQc6PKh2CT9BjwB71v93HtDuY70FGxb5L7nGGgI8O%2FfTa5t%2Fq3q3cvoaWc4i%2BOELxKvGEgAto242pAkbNWe4bgA4UzKyfRYltwK4fX3Ppe2tXkXUvhO6sX9YS2pVVTDS44Y9s%2BkW1RYQ%2Bwg%3D%3D" }, { "type": "BUILD_STAGE_TYPE_COMPILATION", "status": "BUILD_STAGE_STATUS_SUCCESS", "feedback": null, "report": { "compilationStatus": "success" }, "logPath": "https://storage.googleapis.com/assessment-build-logs-prod/acharekar1191-ME_JAVA101_SET_MAP/build-0aa2c6d1-d284-4852-949f-fa309e74eaa9/compilation.log?Expires=1745839511&GoogleAccessId=storage-service%40crio-prod.iam.gserviceaccount.com&Signature=J0kjghCvxhpWkxK2Nz1sbyHrU5u2opACu6cbvSAtHXW%2FRVWOxXrAl2dJVt%2FBtZBG4hFpLOBBFJ1j9yGzyBIEu86liNgpJj%2Fyz0NBJSgOA2jH3VmqDFXrzPFYETVYjkxj4NXC0qQxZC%2BeR2nY%2BB3yu615%2FKlv8g2y1VuJweg6FETyAwJyTMRVA8zc1OmQMq5iLXOYY3JMZKA5zm73qEgCx%2FCvaFdOo6%2BQy%2Bos3uikLsV6%2F37D39FtEKc2GCL2LW%2FAm2HbuFC6pgabEEmjoabfvZ78mO0gl9Wsz6hPiQtSjitQ1rslp74iAgZ%2F77%2BDHt0h8pNil7cxPoUMC3U%2FqbTbcg%3D%3D" }, { "type": "BUILD_STAGE_TYPE_UNIT_TESTING", "status": "BUILD_STAGE_STATUS_SUCCESS", "feedback": null, "report": { "testTwoSum()": "TEST_STATUS_FAILURE" }, "logPath": "https://storage.googleapis.com/assessment-build-logs-prod/acharekar1191-ME_JAVA101_SET_MAP/build-0aa2c6d1-d284-4852-949f-fa309e74eaa9/unitTesting.log?Expires=1745839511&GoogleAccessId=storage-service%40crio-prod.iam.gserviceaccount.com&Signature=W7mHoUTUw7i5xuhtO0Bo8HyZ4OkZAtOIvZxhy9xInyC7wlITo4Acief7f7lRYweOjGy6kPmAxYoIrB4zBxCb%2FHIFA4V7R%2Bm8FLaOWvuPVpcFmP9Tx%2BIU5CSg4RBbpgX3LaLaQ9I4C6eGGX2QKx7PpyphpZtwXZPCx%2FlZTUUXOw3rdggQrA9Izut27j78%2BgjQGnoX7cpy70WVm%2Fw8cGlqQDVe6VauaNr3zuj2%2B%2B8EdqLOKRBJdT3dT%2FZHVbbJsOAI0LuhmRCvEsfwNiKwmzmPLsx2TeApXDu7ET9c5pBGmUEcNhagWgElBjxOAnqr6bUX%2FNdyhKm63pjTVD%2FEg0AnlQ%3D%3D" } ], "codeId": 73728770, "buildStatus": "BUILD_STATUS_SUCCESS", "moduleId": "ME_JAVA101_SET_MAP_MODULE_TWOSUMJUNIT", "buildDurationInMs": 4123, "timestampInMs": 1714303511113 }